﻿using DirectService.Server.Com.taobao.Models;
using System.Collections.Generic;
using DirectService.Server.Com.ROS;
using LJLib.Net.SPI.Com;

namespace DirectService.Server.Com.taobao
{
    /// <summary>
    /// 获取采购订单进度
    /// </summary>
    public sealed class GetLocalBuyTasksInfoRequest : ITokenRequest<GetLocalBuyTasksInfoResponse>
    {
        /// <summary>
        /// 门店会话ID
        /// </summary>
        public string token { get; set; }
        /// <summary>
        /// 需要获取进度的订单号列表
        /// </summary>
        public List<string> taskcodes { get; set; }

        public string GetApiName()
        {
            return "GetLocalBuyTasksInfo";
        }
    }

    public sealed class GetLocalBuyTasksInfoResponse : LJResponse
    {
        /// <summary>
        /// 返回订单的关键信息:
        /// tid
        /// ftaskcode
        /// statusname
        /// fstatusname
        /// erpstatusname
        /// wrkgrpjds: 生产工组进度
        /// 生产工组进度信息:
        /// wrkgrpname
        /// orderqty
        /// finishqty
        /// </summary>
        public List<Task> tasks { get; set; }
    }
}
